package psn.hui.bus.mapper;

import java.util.List;
import psn.hui.bus.domain.Customer;
import psn.hui.bus.vo.CustomerVo;

public interface CustomerMapper {
	/**
	 * 	根据主键(identity)删除客户
	 * @param identity
	 * @return
	 */
    int deleteByPrimaryKey(String identity);
    /**
     * 	插入客户数据，全字段
     * @param record
     * @return
     */
    int insert(Customer record);
    /**
     * 	插入客户数据，动态sql(可选字段)
     * @param record
     * @return
     */
    int insertSelective(Customer record);
    /**
     * 	根据主键(identity)查询客户
     * @param identity
     * @return
     */
    Customer selectByPrimaryKey(String identity);
    /**
     * 	根据主键(identity)更新客户数据，动态sql(可选字段)
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Customer record);
    /**
     * 	根据主键(identity)更新客户数据，全字段
     * @param record
     * @return
     */
    int updateByPrimaryKey(Customer record);
    /**
     * 	根据可选字段查询客户
     * @param customerVo
     * @return
     */
    List<Customer> queryAllCustomer(CustomerVo customerVo);
}